package com.gite.nouette.admin.implementation.integrator.director;

import com.gite.nouette.admin.contract.integrator.builder.IBuilderContainerModule;
import com.gite.nouette.admin.contract.integrator.director.IDirectorContainerModule;
import com.gite.nouette.admin.contract.model.IContainerModule;

public class DirectorContainerModuleImpl implements IDirectorContainerModule {
	private IBuilderContainerModule builder;

	@Override
	public IBuilderContainerModule getBuilder() {
		return this.builder;
	}

	@Override
	public void setBuilder(IBuilderContainerModule builder) {
		this.builder = builder;
	}

	@Override
	public IContainerModule getProduct() {
		return getBuilder().getProduct();
	}

	@Override
	public void constructProduct() {
		getBuilder().createNewProduct();
		getBuilder().buildName();
	}
}
